import instance from '../utils/request'

//ai问答
export const chat = data => {
    console.log(data);
    // const {
    //     prompt
    // } = data
    return instance({
        url: '/ali/chat/stream',
        method: 'POST',

        responseType: 'stream',
        data: {
            prompt: data
        },
    })
}

//根据职位信息进行ai模拟面试
export const interview = data => {
    console.log(data);
    // const {
    //     prompt
    // } = data
    return instance({
        url: `/jobPostings/interview/${id}`,
        method: 'GET',

        responseType: 'stream',
        data: {
            prompt: data
        },
    })
}